package com.dongdongshop.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class SkipController {

    //跳转首页
    @RequestMapping("index")
    public String index(){
        return "index";
    }

    //跳转登录页面 当请求拦截的话,让他跳转到登录页面
    @RequestMapping("toLogin")
    public String toLogin(){
        return "login";
    }

    //跳转注册页面
    @RequestMapping("register")
    public String register(){
        return "register";
    }

    //登录成功跳转页面
    @RequestMapping("homeIndex")
    public String home_index(){
        return "home-index";
    }

    //跳转地址管理页面
    @RequestMapping("homeSettingAddress")
    public String homeSettingAddress(){
        return "home-setting-address";
    }
    //跳转个人信息页面
    @RequestMapping("homeSettingInfo")
    public String homeSettingInfo(){
        return "home-setting-info";
    }
    //跳转地址管理页面
    @RequestMapping("homeSettingSafe")
    private String homeSettingSafe (){
        return "home-setting-safe";
    }

    //跳转到购物结算
    @RequestMapping("cart")
    public String cart() {
        return "cart";
    }

    //跳转结算页面
    @RequestMapping("getOrderInfo")
    public String getOrderInfo(){
        return "getOrderInfo";
    }

    //跳转结算页面
    @RequestMapping("pay")
    public String pay() {
        return "pay";
    }

    //跳转alipay页面
    @RequestMapping("alipay")
    public String alipay(){
        return "alipay/index";
    }

    //跳转待付款
    @RequestMapping("home_order_pay")
    public String homeOrderPay(){
        return "home-order-pay";
    }
    //跳转待发货
    @RequestMapping("home_order_send")
    public String homeOrderSend(){
        return "home-order-send";
    }
    //跳转待收货
    @RequestMapping("home_order_receive")
    public String homeOrderReceive(){
        return "home-order-receive";
    }
    //跳转待评价
    @RequestMapping("home_order_evaluate")
    public String homeOrderEvaluate(){
        return "home-order-evaluate";
    }

    //跳转秒杀页面
    @RequestMapping("seckill_index")
    public String seckill_index(){
        return "seckill-index";
    }

    //跳转等待页面
    @RequestMapping("getOrderIdIndex")
    public String getOrderIdIndex(){
        return "getOrderIdIndex";
    }

    @RequestMapping("text")
    public String text(){
        return "text";
    }
}
